#ifndef __DotaViewer_H__
#define __DotaViewer_H__

#include "BaseViewer.h"

class CCAM_Animation;

class DotaViewer : public BaseViewer
{
public:
    virtual void initSearchPath();
    virtual bool initUI();

    CREATE_FUNC(DotaViewer);
    DotaViewer();

    virtual ui::Widget* createItem(int nIndex, std::string strName);
    virtual void Export(std::string strPath);
    virtual bool LoadFile(std::string strPath);
    virtual void ClearCache();
    void update(float dt);
    void ExportXFL(std::string strPath);
    void ExportJson(std::string strPath);

private:
    ui::Slider *m_pTimeSlider;
    ui::ListView *m_pAnimList;
    CCAM_Animation* m_pAnimation;
    ui::Button *m_pSelectedItem;
    ui::Text *m_pTimeText;
    ui::CheckBox *m_pShowDebug;
    ui::CheckBox *m_pStudio;
    ui::Text *m_pUIName;
};

#endif // __DotaViewer_H__
